package dao;

import java.sql.Connection;
import java.sql.DriverManager;

public class BaseDao {
  private String driverName = "com.mysql.jdbc.Driver";
  private String url = "jdbc:mysql://localhost/petstore";
  private String user = "root";
  private String password = "849950808";
  public Connection getConnection()throws Exception{
	  Connection conn = null;
	  Class.forName(driverName).newInstance();
	  conn = DriverManager.getConnection(url,user,password);
	  return conn;	  
  }
}
